FROM python

# 设置工作目录
WORKDIR /app

# 将当前目录下的所有文件复制到工作目录
COPY app /app

# 安装依赖
RUN pip install --trusted-host pypi.python.org -r requirements.txt

# 暴露端口
EXPOSE 80

# 运行命令
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "80"]